import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tracer.settings")
django.setup()

from web import models

data = ["123", "aaa", "asad", "123", "dddasd", "sasa", "sadawq", "12sd", "cda", "12as", "1sad"]
models.CrawlDate.objects.create(fund_code=data[0], fund_name=data[1], f_datetime=data[2],
                                f_value=data[3], f_net_value=data[4], day_growth=data[5], week=data[6],
                                january=data[7], march=data[8], six_month=data[9], year=data[10])
